package com.example.demo.mapper;

import com.example.demo.model.ArticleInfo;
import lombok.extern.slf4j.Slf4j;
import lombok.extern.slf4j.XSlf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Creat with IntelliJ IDEA
 * Description:
 * User:WZW
 * Date:2022-08-24
 * Time:23:41
 */
@Mapper
public interface ArticleMapper {
    // 根据文章id获取文章
    public ArticleInfo getArticleById(@Param("id") Integer id);
}
